package com.apollow.oschina.protocol;

import com.apollow.oschina.base.BaseProtocol;
import com.apollow.oschina.bean.GeneralNewsBean;
import com.apollow.oschina.bean.GeneralNewsDetailBean;

import retrofit2.Call;

/**
 * Created by Administrator on 2017/1/15.
 * 项目名:    OsChina
 * 包名:      com.apollow.oschina.protocol
 * 文件名:    BlogProtocol
 * 创建者:    LXF
 * 创建时间:   ${DATA}14:50
 * 描述:     TODO
 */

public class HotSpotProtocol extends BaseProtocol<GeneralNewsBean>{
    public String pageIndex;

    @Override
    protected Call<GeneralNewsBean> getCall(String... parms) {
        return mService.getHotSpotInfo(pageIndex,"4","week","20");
    }
    //热点详情界面:
    public GeneralNewsDetailBean getWebViewURl(String id){
        NewsDetailProtocol protocol=new NewsDetailProtocol();
        protocol.setId(id);
        GeneralNewsDetailBean data = protocol.getData();
        return data;
    }

    public void setPageIndex(String pageIndex) {
        this.pageIndex = pageIndex;
    }
}
